refactor!: make in2lambda a command group (convert) - #24
Open
m-messer wants to merge 1 commit into
Open
Conversation
BREAKING CHANGE: file conversion moves from `in2lambda <file> <filter>` to `in2lambda convert <file> <filter>`. `cli` is now a click.group so further subcommands (a wizard, etc.) can be added without overloading the top-level command. The former command body is unchanged, just relocated to `convert`; `runner()` is untouched. - pyproject `[tool.poetry.scripts]` and docs/source/reference/command-line.rst still point at `in2lambda.main:cli` - no change needed there, sphinx-click renders the subcommand automatically. - quickstart examples updated to `in2lambda convert ...` with a note. - tests/test_cli.py added (CliRunner) covering help, output files, case-insensitive filter names, and unknown-filter rejection. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017VXb8aZqgFBjoeuuddjW6r
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
BREAKING CHANGE: file conversion moves from
in2lambda <file> <filter>toin2lambda convert <file> <filter>.cliis now aclick.groupso further subcommands (a wizard, etc.) can be added without overloading the top-level command. The former command body is unchanged, just relocated toconvert;runner()is untouched.[tool.poetry.scripts]andcommand-line.rststill point atin2lambda.main:cli— sphinx-click renders the subcommand automatically.in2lambda convert ...with a note.tests/test_cli.pyadded (CliRunner): help, output files, case-insensitive filter names, unknown-filter rejection.Stack: markdown-filter ← cli-group ← llm-client ← …
Base:
markdown-filter— #23.🤖 Generated with Claude Code